< previous page page_699 next page >

Page 699
0699-01.jpg
Figure 18.6.
Running the RDC data-entry project.
That's all there is to creating data-entry forms using data-bound controls and the RDC. In the next section, you'll learn how to create database applications that use the RDOs instead of a data-bound control set.
Programming with RDOs
Creating database applications that use the RDOs is quite similar to programming with the Microsoft Jet DAOs. Most of the material in this section of the chapter refers to Chapter 9. If you have not already completed that chapter, you might want to review it before you continue with this chapter.
The RDO programming objects are arranged in a hierarchy of collections. The top-level object is the rdoEngine object. This is the programmatic access to the Microsoft remote data engine used by Visual Basic 5 to gain access to all remote data. All requests using the RDO objects are handled by the rdoEngine.
The rdoEngine creates one or more rdoEnvironment objects. These objects are used to manage the details of the various connections to datasets. rdoEnvironment objects can create rdoConnection objects. These are the actual connections to existing data sources at the remote data system. Each rdoConnection can create one or more rdoResultset objects. The rdoResultset object contains the actual rows of data. You also can create and access rdoQuery objects or rdoTable objects from the rdoConnection object. The rdoQuery object also has an rdoParameter object to manage the passing of parameters during the processing of queries.
In the sections that follow, you code examples of each of the RDO objects, inspect their properties, and exercise their methods. To do this, start a new Visual Basic 5 Standard EXE

 
< previous page page_699 next page >

If you like this book, buy it!